package com.example.shiwuyouproject.ui.fragment.message.adapter;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.shiwuyouproject.R;
import com.example.shiwuyouproject.ui.bean.GetMessageListsBean;

import java.util.List;

public class MessageAdapter extends BaseQuickAdapter<GetMessageListsBean, BaseViewHolder> {
    public MessageAdapter() {
        super(R.layout.item_message);
    }
    @Override
    protected void convert(BaseViewHolder helper,GetMessageListsBean item) {
        helper.setText(R.id.tvTitle,item.getTitle())
                .setText(R.id.tvContent,item.getContent());

    }
}